{{>partial_header}}
package {{packageName}}
{{#models}}
{{#imports}}
{{#@first}}
import (
{{/@first}}
	"{{import}}"
{{#@last}}
)
{{/@last}}
{{/imports}}
{{#model}}{{#isEnum}}{{#description}}// {{{classname}}} : {{{description}}}{{/description}}
type {{{classname}}} {{^format}}{{dataType}}{{/format}}{{#format}}{{{format}}}{{/format}}

// List of {{{name}}}
const (
	{{#allowableValues}}
	{{#enumVars}}
	{{^@first}}
	{{/@first}}
	{{name}}_{{{classname}}} {{{classname}}} = "{{{value}}}"
	{{/enumVars}}
	{{/allowableValues}}
){{/isEnum}}{{^isEnum}}{{#description}}
// {{{description}}}{{/description}}
type {{classname}} struct {
{{#isComposedModel}}
    {{#interfaceModels}}
    {{classname}}
    {{/interfaceModels}}
{{/isComposedModel}}
{{^isComposedModel}}
{{#vars}}
{{^@first}}
{{/@first}}
{{#description}}
	// {{{description}}}
{{/description}}
	{{name}} {{^isEnum}}{{^isPrimitiveType}}{{^isContainer}}{{^isDateTime}}*{{/isDateTime}}{{/isContainer}}{{/isPrimitiveType}}{{/isEnum}}{{{datatype}}} `json:"{{baseName}}{{^required}},omitempty{{/required}}"{{#withXml}} xml:"{{baseName}}"{{/withXml}}`
{{/vars}}
{{/isComposedModel}}
}{{/isEnum}}{{/model}}{{/models}}
